package com.project.bean;

import java.util.List;

/**
 * 后台管理员实体类
 */
public class ManagerBean {
    /**管理员ID*/
    private int id;
    /**管理员用户名*/
    private String code;
    /**管理员密码*/
    private String psw="123";
    /**管理员电话*/
    private String tel;
    /**管理员邮箱*/
    private String email;
    /**管理员真实姓名*/
    private String realName;
    /**管理员类型*/
    private String type="门店管理员";
    /**管理员头像*/
    private String faceImg;
    /**门店*/
    private StoreBean store;

    public ManagerBean() {
    }

    public ManagerBean(String code, String tel, String email, String realName, String faceImg, int storeId) {
        this.code = code;
        this.tel = tel;
        this.email = email;
        this.realName = realName;
        this.faceImg = faceImg;
        this.store = new StoreBean();
        this.store.setId(storeId);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPsw() {
        return psw;
    }

    public void setPsw(String psw) {
        this.psw = psw;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getFaceImg() {
        return faceImg;
    }

    public void setFaceImg(String faceImg) {
        this.faceImg = faceImg;
    }

    public StoreBean getStore() {
        return store;
    }

    public void setStore(StoreBean store) {
        this.store = store;
    }

    @Override
    public String toString() {
        return "ManagerBean{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", psw='" + psw + '\'' +
                ", tel='" + tel + '\'' +
                ", email='" + email + '\'' +
                ", realName='" + realName + '\'' +
                ", type='" + type + '\'' +
                ", faceImg='" + faceImg + '\'' +
                ", store=" + store +
                '}'+"\n";
    }
}
